home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2002 #11
/
Amiga Plus CD - 2002 - No. 11.iso
/
Tools
/
Development
/
PowerD
/
powerd
/
source
/
lib
/
library_lib.lha
/
Library
/
LibExpunge.d
< prev
next >
Wrap
Text File
|
2001-11-14
|
377b
|
19 lines
OPT NOEXE
MODULE 'powerd/library'
EPROC customExpungeLib(base:PTR TO LibGenBase)(LONG)
PROC libExpunge(base:PTR TO LibGenBase IN a6)(LONG)
DEF rc=0
IF base.library.OpenCnt
base.library.Flags|=LIBF_DELEXP
RETURN 0
ENDIF
customExpungeLib(base)
Remove(base)
rc:=base.segment
FreeMem(base-base.library.NegSize,base.library.NegSize+base.library.PosSize)
ENDPROC rc